package com.aiyige.model.response;

import com.aiyige.base.api.ApiManager;

import java.util.List;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by zhuyakun on 2017/12/6.
 */

public class GetGoodsInfoByGoodsIdResponse {
    public long code;
    public String message;
    public Data data;

    public static class Data {
        public static final int TYPE_PHOTO = 1;
        public static final int TYPE_VIDEO = 2;
        public static final int TYPE_INFO = 3;
        public static final int TYPE_SPECIFIC_TOPIC = 4;
        public static final int TYPE_LEARN_VDIEO = 5;
        public static final int TYPE_MAJOR_COURSE = 6;
        public static final int TYPE_TRAING_CARD = 7;
        public static final int TYPE_PERSONAL_TRAINER = 8;
        public long id;
        public long goodsId;
        public int version;
        public int type;
        public String detail;
        public String cover;
        public String title;
        public long price;
        public long categoryId;
        public String categoryName;
        public long createTime;
        public long status;
        public long ownerId;
        public long cityId;
        public long videosNum;
        public List<GroupList> groupList = null;
        public List<MediaList> mediaList = null;
        public List<GuaranteeList> guaranteeList = null;
    }

    public static class GroupList {
        public static final long GROUP_TYPE_COURSE_TYPE = 1;
        public static final long GROUP_TYPE_SUITABLE_PEOPLE = 2;
        public static final long GROUP_TYPE_LEARN_TARGET = 3;
        public static final long GROUP_TYPE_TEACHER = 5;
        public static final long GROUP_TYPE_OTHER = 9;
        public String groupName;
        public long groupId;
        public List<TagGroupList> tagGroupList = null;
    }

    public static class GuaranteeList {
        public long configId;
        public String title;
        public String detail;
    }

    public static class MediaList {

        public long id;
        public long goodsId;
        public long goodsVersion;
        public long type;
        public String title;
        public String detail;
        public long ownerId;
        public long duration;
        public long size;
        public String url;
        public String cover;
        public String teacher;
        public String director;
        public long courseStage;
        public long status;
        public long qiniuStatus;
        public long createTime;
        public String updateTime;
        public String orderMe;
        public boolean free;
    }

    public static class TagGroupList {
        public long groupId;
        public String groupName;
        public long tagId;
        public String tagName;
    }
}
